<template>
  <PageWrapper contentFullHeight fixedHeight dense>
    <AdVxeTable @register="registerTable" />
  </PageWrapper>
</template>

<script lang="ts" setup>
  import { useI18n } from '@/hooks/web/useI18n';
  import { PageWrapper } from '@/components/Page';
  import { AdVxeTable, useAdVxeTable } from '@/components/AdVxeTable';
  import { readPacks } from '@/api/system/admin/pack';

  import { columns } from './pack.data';

  defineOptions({ name: 'PackPage' });

  const { t } = useI18n();
  const [registerTable] = useAdVxeTable({
    id: 'system-pack-page-table',
    // 表标题呈现器
    title: t('routes.system.pack.packList'),
    // 表格数据接口请求对象
    api: readPacks,
    // 表单列信息 BasicColumn[]
    columns,
    // 搜索表单
    searchForm: true,
    // 是否带有边框 boolean | default（默认）, full（完整边框）, outer（外边框）, inner（内边框）, none（无边框）
    border: false,
    // 是否显示序号列
    showSeqColumn: true,
  });
</script>
